package com.ruoyi.tws.api.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.MyPlusEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 订单 - 货物对象 tws_order_goods
 * 
 * @author ruoyi
 * @date 2023-01-17
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("tws_order_goods")
public class OrderGoods extends MyPlusEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 订单表id */
    @Excel(name = "订单表id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long orderId;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNo;

    /** 货物名称 */
    @Excel(name = "货物名称")
    private String descriptionOfGoods;

    /** 货物类型 */
    @Excel(name = "货物类型")
    private String cargoTypeClassificationCode;

    /** 货物毛重（千克,保留三位小数） */
    @Excel(name = "货物毛重")
    private BigDecimal goodsItemGrossWeight;

    /** 体积（立方米,保留四位小数） （@TableField(value = "`cube`")转义sql关键字） */
    @Excel(name = "体积")
    @TableField(value = "`cube`")
    private BigDecimal cube;

    /** 总件数 */
    @Excel(name = "总件数")
    private Integer totalNumberOfPackages;

}
